<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导航菜单页</title>
<link href="${ctx }/js/dhtmlxtree/dhtmlxtree.css" rel="stylesheet"
	type="text/css" />
<script src="${ctx }/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="${ctx }/js/dhtmlxtree/dhtmlxcommon.js"
	type="text/javascript"></script>
<script src="${ctx }/js/dhtmlxtree/dhtmlxtree.js" type="text/javascript"></script>
<script>
	$( function() {
		var tree = new dhtmlXTreeObject("treeBox",
				"100%", "100%", 0);

		function onNodeSelect(nodeId) {
			href = tree.getUserData(nodeId, "url");
			if (href != null) {
				parent.contentFrame.location.href = "${ctx}" + href;
			}
		}
		tree.attachEvent("onClick", onNodeSelect);
		tree.setImagePath("${ctx}/js/dhtmlxtree/imgs/csh_books/");
		tree.loadXML("${ctx}/menu.do");

	});
</script>
</head>
<body bgcolor="#E1EEF4" style="margin: 5px;">
<div id="treeBox"></div>
</body>
</html>